package com.stepforward.me;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.AdapterView.OnItemLongClickListener;

public class HomeScreen extends Activity{

	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.homescreen);
	    
        ImageButton busRoute = (ImageButton) findViewById(R.id.directionsIcon);
        ImageButton quickBus = (ImageButton) findViewById(R.id.quickBusIcon);
        ImageButton realTime = (ImageButton) findViewById(R.id.realTimeIcon);
        ImageButton favorites = (ImageButton) findViewById(R.id.favoritesIcon);
        ImageButton alarm = (ImageButton) findViewById(R.id.alarmIcon);
        ImageButton currentLocation = (ImageButton) findViewById(R.id.currentLocationIcon);
       
        busRoute.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), DatePicker.class);
                startActivityForResult(myIntent, 0);
            }

        });
        quickBus.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), QuickBus.class);
                startActivityForResult(myIntent, 0);
            }

        });
        realTime.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), pghTwitter.class);
                startActivityForResult(myIntent, 0);
            }

        });
        favorites.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), FavoriteRoute.class);
                startActivityForResult(myIntent, 0);
            }

        });
        alarm.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), AlarmRoute.class);
                startActivityForResult(myIntent, 0);
            }

        });
        currentLocation.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), CurrentLocationWithMap.class);
                startActivityForResult(myIntent, 0);
            }

        });
	
	}
}
